package com.sam.mvp.entity;

import com.crazysunj.multitypeadapter.helper.RecyclerViewAdapterHelper;
import com.sam.base.MutiTypeTitleEntity;

/**
 * @ProjectName: SamLib
 * @Package: com.sam.mvp.entity
 * @ClassName: CommonFooterEntity
 * @Description:
 * @Author: Carl
 * @CreateDate: 2018/10/24 11:14
 * @UpdateUser:
 * @UpdateDate: 2018/10/24 11:14
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class CommonHeadEntity implements MutiTypeTitleEntity {

    public String title;
    public int type;
    private long id;


    public CommonHeadEntity(String title, int type) {
        this.title = title;
        this.type = type - RecyclerViewAdapterHelper.HEADER_TYPE_DIFFER;
        this.id = System.currentTimeMillis();
    }

    @Override
    public String getTitle() {
        return title;
    }

    @Override
    public void setTitle(String title) {
        this.title = title;
    }


    @Override
    public int getItemType() {
        return type;
    }

    @Override
    public long getId() {
        return id;
    }
}
